package com.dy.nygl.util;

import com.dy.nygl.pojo.User;

public class UserSession {
	private UserSession() {}
	private static UserSession instance = null;

	public static synchronized UserSession getInstance() {
		if (instance == null) {
			instance = new UserSession();
	    }
			return instance;
	    }
	
	public static void setInstance(UserSession instance) {
		UserSession.instance = instance;
		
	}
	private User user;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}
